﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL.Translator
{
    /// <summary>
    /// Define Status Translator
    /// </summary>
    public class StatusTranslator
    {
        /// <summary>
        /// To Translate StatusDataEntity to StatusBusinessEntity
        /// </summary>
        /// <param name="statusDE"></param>
        /// <returns></returns>
        public static BLL.Status TranslateEntityToBusiness(DAL.Status statusDE)
        {
            BLL.Status statusBE = new BLL.Status();
            statusBE.StatusId = statusDE.StatusId;
            statusBE.StatusName = statusDE.StatusName;
            return statusBE;
        }

        /// <summary>
        /// To Translate StatusBusinessEntity to StatusDataEntity
        /// </summary>
        /// <param name="statusBE"></param>
        /// <returns></returns>
        public static DAL.Status TranslateBusinessToEntity(BLL.Status statusBE)
        {
            DAL.Status statusDE = new DAL.Status();
            statusDE.StatusId = statusBE.StatusId;
            statusDE.StatusName = statusBE.StatusName;
            return statusDE;
        }
    }

}
